package com.itshidu.jiaowu.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;

@Configuration
@MapperScan("com.itshidu.mapper*")
public class MybatisPlusConfig {
	/**
<<<<<<< HEAD:EduSystem/src/main/java/com/itshidu/jiaowu/config/MybatisPlusConfig.java
     * mybatis-plus分页插件<br>     a
=======
     * mybatis-plus分页插件<br>
>>>>>>> origin/master:EduSystem/src/main/java/com/itshidu/jiaowu/config/MybatisPlusConfig.java
     * 文档：http://mp.baomidou.com<br>
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        paginationInterceptor.setLocalPage(true);// 开启 PageHelper 的支持
        return paginationInterceptor;
    }

}
